function initBridge(){
    document.addEventListener('WebViewJavascriptBridgeReady', function onBridgeReady(event) {
                              var bridge = event.bridge
                              bridge.init(function(message, responseCallback) {
                                          alert('Received message: ' + message)
                                          if (responseCallback) {
                                          responseCallback("Right back atcha")
                                          }
                                          })
                              bridge.send('Hello from the javascript')
                              bridge.send('Please respond to this', function responseCallback(responseData) {
                                          console.log("Javascript got its response", responseData)
                                          })
                              }, false);
}